#include "comm.hpp"

int main()
{
	// sleep(5);
	int shmid = GetShm();
	// log(Debug, "create success");

	// sleep(5);
	char* shmaddr = (char*)shmat(shmid, nullptr, 0);
	// log(Debug, "attach success, shmaddr: 0x%x", shmaddr);

	while (true)
	{
		cout << "please enter@ ";
		fgets(shmaddr, size, stdin);
	}

	// sleep(5);
	int ret = shmdt(shmaddr);
	// log(Debug, "deattch shm done, ret: %d", ret);
	
	// sleep(5);
	// log(Debug, "processa quit ...");

	return 0;
}